<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title>设置</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.css" rel="stylesheet" />
		<link href="css/app.css" rel="stylesheet" />
	</head>
	<body>
		<!-- 导航栏 -->
		<div class="mui-navbar-inner mui-bar mui-bar-nav chat-topbg">
			<button type="button" class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-left">
				<span class="mui-icon mui-icon-left-nav chat-topcolor"></span>
			</button>
			<h1 class="mui-center mui-title chat-topcolor">设置</h1>
		</div>
		<!-- 内容主体 -->
		<div class="mui-content" style="padding-top: 1.875rem">
			<ul class="mui-table-view">
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<span class="mui-icon mui-icon-arrowright mui-pull-right" style="color: lightgray;"></span>
						<div class="mui-media-body">账号与安全</div>
					</a>
				</li>
			</ul>
			<ul class="mui-table-view mt10">
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<span class="mui-icon mui-icon-arrowright mui-pull-right" style="color: lightgray;"></span>
						<div class="mui-media-body">新消息通知</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<span class="mui-icon mui-icon-arrowright mui-pull-right" style="color: lightgray;"></span>
						<div class="mui-media-body">隐私</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<span class="mui-icon mui-icon-arrowright mui-pull-right" style="color: lightgray;"></span>
						<div class="mui-media-body">通用</div>
					</a>
				</li>
			</ul>
			<ul class="mui-table-view mt10">
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<span class="mui-icon mui-icon-arrowright mui-pull-right" style="color: lightgray;"></span>
						<div class="mui-media-body">帮助与反馈</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<span class="mui-icon mui-icon-arrowright mui-pull-right" style="color: lightgray;"></span>
						<span id="nickname" class="mui-pull-right" style="color: gray;font-size: 0.875rem;">v1.0.0</span>
						<div class="mui-media-body">关于okCHAT</div>
					</a>
				</li>
			</ul>
			<ul class="mui-table-view mt10">
				<li class="mui-table-view-cell mui-media logout">
					<a href="javascript:;">
						<div class="mui-media-body mui-text-center">退出登陆</div>
					</a>
				</li>
			</ul>
		</div>
		<script src="js/mui.js"></script>
		<script src="js/app.js"></script>
		<script type="text/javascript">
			mui.init();

			mui.plusReady(function() {
				/**
				 * 退出登陆
				 */
				mui(".mui-table-view").on("tap", ".logout", function() {
					var btnArray = ["否", "是"];
					mui.confirm("确定退出吗？", "提示", btnArray, function(e) {
						if (e.index == 1) {
							app.delUserInfo();
							mui.openWindow("login.html", "login.html");
						}
					})
				})
			});
		</script>
	</body>
</html>
